cmake_minimum_required(VERSION 3.10)
project(PointLinePolygon)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(SDL2 REQUIRED)

add_executable(program
    src/main.cpp
    src/fileio.cpp
    src/commands.cpp
    src/geometry.cpp
    src/graphics.cpp
)

target_include_directories(program PRIVATE ${SDL2_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/src)
target_link_libraries(program PRIVATE ${SDL2_LIBRARIES}) 